package com.axonactive.yolo.service.internal;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;

import com.axonactive.yolo.monitor.UpdateAirportData;

public class QuartzJobUpdateAirportData extends QuartzJobBean {
	private UpdateAirportData updateAirportData;

	public void setUpdateAirportData(UpdateAirportData updateAirportData) {
		this.updateAirportData = updateAirportData;
	}

	protected void executeInternal(JobExecutionContext context) throws JobExecutionException {
		updateAirportData.run();
	}
}
